
/// 数据驾驶舱接口地址
class DataStatistics {

  /*//关键指标kpi
  static HttpRequest2<KpiEntityEntity> kpi(int? groupId, int? channelId) {
    return HttpUtil2().generatePostRequest('cockpit/kpi', data: FormData.fromMap({
      'group_id': groupId,
      'channel_id': channelId,
    }));
  }

  //关键指标卡片(超市经营数据)
  static HttpRequest2<BusinessDataEntityEntity> businessData(int? groupId, int? channelId) {
    return HttpUtil2().generatePostRequest('cockpit/card', data: FormData.fromMap({
      'group_id': groupId,
      'channel_id': channelId,
    }));
  }

  //超市运营分析(雷达图)
  static HttpRequest2 supermarketOperationAnalysis(int? groupId, int? channelId) {
    return HttpUtil2().generatePostRequest('cockpit/radar_map', data: FormData.fromMap({
      'group_id': groupId,
      'channel_id': channelId,
    }));
  }

  ///优惠券领取
  /// actId 活动ID(多个逗号隔开)
  static HttpRequest2 couponCollection(int? groupId, int? channelId, int? couponsId, String? actId) {
    return HttpUtil2().generatePostRequest('cockpit/day_coupon', data: FormData.fromMap({
      'group_id': groupId,
      'channel_id': channelId,
      'coupons_id': couponsId,
      'act_id': actId,
    }));
  }

  ///核销趋势图
  /// actId 活动ID(多个逗号隔开)
  static HttpRequest2 trendChart(int? groupId, int? channelId, int couponsId, String actId) {
    return HttpUtil2().generatePostRequest('cockpit/hours_coupon', data: FormData.fromMap({
      'group_id': groupId,
      'channel_id': channelId,
      'coupons_id': couponsId,
      'act_id': actId,
    }));
  }

  ///设备状态分析(饼图)
  static HttpRequest2<DeviceStatusEntityEntity> deviceStatusAnalysis(int? groupId, int? channelId) {
    return HttpUtil2().generatePostRequest('cockpit/pie', data: FormData.fromMap({
      'group_id': groupId,
      'channel_id': channelId,
    }));
  }

  /// 获取指标值
  static HttpRequest2<List<GetTargetEntity>> getTarget(int? groupId, int? channelId) {
    return HttpUtil2().generatePostRequest('cockpit/target', data: FormData.fromMap({
    'group_id': groupId,
    'channel_id': channelId,
    }));
  }

  /// 转化漏斗
  static HttpRequest2<GetFunnelEntity> getFunnel(int? groupId, int? channelId) {
    return HttpUtil2().generatePostRequest('app/funnel', data: FormData.fromMap({
      'group_id': groupId,
      'channel_id': channelId,
    }));
  }*/


}
